How I start a web3 project
- Svelte starter:
npx degit italypaleale/svelte-spa-router-template <some-name>
- Hardhat:
npm i --save-dev hardhat && npx hardhat
- Install ethers:
npm i ethers
Hardhat
- Start project with empty config
- Install all deps:
npm install --save-dev @nomiclabs/hardhat-waffle ethereum-waffle chai @nomiclabs/hardhat-ethers
- Create contracts/
- Replace config with:
require("@nomiclabs/hardhat-waffle") task("accounts", "Prints the list of accounts", async (taskArgs, hre) => { const accounts = await hre.ethers.getSigners() for (const account of accounts) { console.log(account.address) } }) /** * @type import('hardhat/config').HardhatUserConfig */ module.exports = { solidity: "0.8.4", }